import React from 'react'

export default function Count(props) {
  console.log(props)
  return (
    <div>
      <p>{props.xxx}</p>
      <button
        onClick={() => {
          props.inc(1)
        }}
      >
        +1
      </button>
      <button
        onClick={() => {
          props.inc(2)
        }}
      >
        +2
      </button>
      <button
        onClick={() => {
          props.dec(3)
        }}
      >
        -3
      </button>
    </div>
  )
}
